package com.lwl.blog.core.dao;

import java.sql.SQLException;
import java.util.List;

public interface IBaseDao<T> {
    //插入
    public Integer insert(T t) throws SQLException;

    //根据id更新
    public Integer updateById(T t) throws SQLException;

    //根据id删除
    public Integer deleteById(Integer id) throws SQLException;

    //查询全部数据
    public List<T> selectList() throws SQLException;

    //根据id来查询
    public T selectById(Integer id) throws SQLException;

    //批量删除
    public Integer batchRemove(List<Integer> ids) throws SQLException;
}
